<template>
	<div @click="toTestI('1')">click</div>
	<router-link :to="{
	  name: 'Testi',
	  params: { queryTest: '1' }
	}">
	  跳转到目标页面
	</router-link>
</template>

<script>
	import { useRouter } from 'vue-router'
	export default{
		setup(){
			const router = useRouter();
			
			const toTestI = (queryT) => {
				router.push({name:'Testi',params:{queryTest:queryT}});
			}
			
			return{
				toTestI
			}
		}
	}
</script>

<style>
</style>